﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

using Swaf.Security;
namespace Swaf.BizRule
{
	public class BaseBizRule
	{
		/// <summary>
		/// 
		/// </summary>
		protected static IApplication App { get { return Application.currentApp; } }
		/// <summary>
		/// 
		/// </summary>
		protected static ISecurityPrincipal CurrentPrincipal
		{
			get
			{
				Debug.Assert(App.securityMgr.currentPrincipal != null);
				return App.securityMgr.currentPrincipal;
			}
		}

	}
}
